package com.ruoyi.framework.web.service;


import com.ruoyi.system.domain.Type;
import com.ruoyi.system.service.ITypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 */
@Service("level")
public class LevelService
{
    @Autowired
    private ITypeService typeService;

    /**
     */
    public List<Type> getType(String pid)
    {
        Type type = new Type();
        type.setParentId(Long.valueOf(pid));
        List<Type> list = typeService.selectTypeList(type);
        return list;
    }


}
